<template>
  <div style="width:100%;">
    <el-tabs value="first">
      <el-tab-pane label="我的收藏" name="first">
        <div class="collect_item">
             <product-item :isshow='true' badcolor='#f3f7f9' v-for="(item,index) in productlist" :key="index"></product-item>
        </div>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>
<script>
import productItem from "../components/productItem";
export default {
  data() {
    return {
      productlist: [
        {
          name: "小米机器人",
          id: "1",
          url: ""
        },
        {
          name: "小米机器人",
          id: "1",
          url: ""
        },
        {
          name: "小米机器人",
          id: "1",
          url: ""
        }
      ]
    };
  },
  components: {
    productItem
  }
};
</script>
<style lang="scss" >
.el-tabs__nav-wrap::after {
  width: 100%;
}
.el-tabs__nav-scroll {
  display: flex;
  justify-content: flex-start;
}
.collect_item{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
</style>